$(document).ready(
function() {
	// 八音分类
	var byJson = ajaxResult("get", false,"MbXtglBaseTableServlet.getPullData.do", {'tn' : 'mb_gy_byfl'});
	loadSelect("#class_bayin", byJson.rows, 'id', 'name');
	var columns = [ 
		{title : '乐器名称',field : 'title'}, 
		{title : '自称',field : 'title_self'}, 
		{title : '音标',field : 'phoneticsymbol'}, 
		{title : '名称解说词',field : 'titledescription'}, 
		{title : '霍萨分类',field : 'class_huosa_text'},			
		{title : '八音分类',field : 'class_bayin_text'}, 
		{title : '民间分类',field : 'class_minjian_text'}, 
		{title : '出土地点',field : 'unearthedPlace'}, 
		{title : '年代',field : 'year_text'}, 
		{title : '操作',	formatter : function(value, row, index) {
			return '<a onclick="editData(' + row.task_id + ')">录入</a>';
		}} 
	];
	var params =$("#submitForm").serializeObject();		 
	params["pageNumber"] = 1;
	params["limit"] = pageSize;
	params["offset"] = 0;
	createTable('#data-table','/cnmuseum/bm/bmlist', 'id', columns,params);
});
function query() {
	refreshTable("#data-table", "#submitForm");
}
function editData(task_id) {
	window.location.href = 'zjlrDetail.html?task_id=' + task_id;
}
function showhsfl() {
	initSelectModel("Hs", "选择霍萨分类", "class_huosa", 1)
}
function showmjfl() {
	initSelectModel("Mj", "选择民间分类", "class_minjian", 1)
}